package com.jd.oneday.month3;

/**
 * @author liulonghui10
 * 测试
 */


public class Day10_Test {
    public static void main(String[] args) {
        LinkedListNode linkedListNodes1 = new LinkedListNode(1, "刘伟超", 5);
        LinkedListNode linkedListNodes2 = new LinkedListNode(5, "刘广超", 4);
        LinkedListNode linkedListNodes3 = new LinkedListNode(8, "刘满超", 14);
        LinkedListNode linkedListNodes4 = new LinkedListNode(15, "刘宇鹏", 7);

        Day10_LinkedListReverse head = new Day10_LinkedListReverse();
        head.add(linkedListNodes1);
        head.add(linkedListNodes2);
        head.add(linkedListNodes3);
        head.add(linkedListNodes4);
        System.out.println("反转前：");
        head.List();

        System.out.println("反转后：");
        head.linkedListReverse(head.getNode());
        head.List();
    }
}
